<?php
include($_SERVER["DOCUMENT_ROOT"]."/bob.php");
include($_SERVER["DOCUMENT_ROOT"]."/fonctions_globales.php");
include("fonctions_messagerie.php");
$mysqli = new_mysqli($host, $user, $password, $database); //connection à la DB

$result = mysqli_query_with_error($mysqli, "SELECT * FROM forum_posts_text");
while($ligne = $result->fetch_assoc()){
	mysqli_query_with_error($mysqli, "UPDATE forum_posts SET post_text = '".$mysqli->real_escape_string($ligne['post_text'])."' WHERE post_id = {$ligne['post_id']}");
}
?>
</body></html>